<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/transaction_details_return.css"/>
    <title>我的订货郎</title>
</head>
<body onselectstart="return false">
<div id="container_1" style="height:100%">
    <div style="position: relative">
        <%@include file="header.jsp" %>
    </div>
    <div id="content" class="clearfix">
        <%@include file="left_menu.jsp" %>
        <!--内容部分-->
        <div class="right-content" style="margin:75px 50px 0 213px;">
            <p class="brand">
                <a>财务</a>><a class="now">收支明细</a>
            </p>
            <div class="content">
                <div class="top-block">
                    <div class="search-box fl">
                        <input type="text" placeholder="请输入支付流水号/客户名称/单号"/>
                        <span></span>
                    </div>
                    <div class="date fl">
                        <span class="fl">退货时间</span>
                        <input class="fl" id="datePicker" readonly placeholder="请选择开始日期" onchange="changes()"/>
                    </div>
                    <div class="state">
                        <ul class="clearfix">
                            <li>订货单</li>
                            <li class="active">退货单</li>
                        </ul>
                    </div>
                </div>
                <div class="product-list">
                    <table>
                        <thead>
                        <tr>
                            <td>客户</td>
                            <td>退单号</td>
                            <td>付款状态</td>
                            <td>金额</td>
                            <td>支付流水号</td>
                            <td>款项确认</td>
                            <td>时间</td>
                            <td></td>
                        </tr>
                        </thead>
                        <tbody>

						<c:forEach items="${refundRecord}" var="iR">
                        <tr>
                            <td>${iR.name}</td>
                            <td>DH${iR.code}</td>
                            <td class="pay-state">
                                <p>${iR.paymentState}</p>
                            </td>
                            <td>￥${iR.amount}</td>
                            <td>${iR.paySerialNumber}</td>
                            <td class="isConfirm">${iR.isConfirm}</td>
                            <td><fmt:formatDate value="${iR.incomeTime}" pattern="yyyy-MM-dd hh:mm"/></td>
                            <td>
                                <button class="detail">查看</button>
                                <button class="confirm">确认收款</button>
                            </td>
                        </tr>
						</c:forEach>
                        </tbody>
                    </table>
                    <!-- -----分页----- -->
                    <div class="quotes" style="margin-top: 50px"></div>
                </div>
            </div>
        </div>
        <script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/transaction_details_return.js"></script>
        <!--内容部分结束-->
    </div>
</div>

</body>
</html>